package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.BdActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ActivityMapper extends BaseMapper<BdActivity> {

    @Select("select * from bd_activity where quatation_id = #{id}")
    BdActivity selectByQuatationId(String id);

    @Select("select * from bd_activity where quatation_id != ''")
    List<BdActivity> selectAllActivity();
}
